GCC		= /usr/bin/gcc
RM		= /usr/bin/rm
CFLAGS        = -I . -I /usr/include -c
DEBUG_OPTS	= -LDEBUG
LDFLAGS       = -L.
OFLAGS        = -static -o 
DFLAGS        = -DDEBUG -Wall -g 
objects 	= event_gen.o server.o


.SUFFIXES: .o .c


all: imbs-server limbs-server imbs-client limbs-client
 
imbs-server: 
	echo "Compiling imbs server"
	$(GCC) $(CFLAGS) server.c
	$(GCC) $(CFLAGS) event_gen.c

limbs-server: 
	echo "Linking imbs server"
	$(GCC) $(OFLAGS) server server.o event_gen.o $(LDFLAGS)

imbs-client:
	echo "Compiling imbs client"
	$(GCC) $(CFLAGS) client.c
	$(GCC) $(CFLAGS) event_gen.c

limbs-client: 
	echo "Linking imbs client"
	$(GCC) $(OFLAGS) client client.o event_gen.o $(LDFLAGS)

clean: 
	$(RM) *.exe *.o 